<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>后台管理</title>
	<link rel="shortcut icon" type="image/ico" href="/images/favicon.ico">
	<link rel="stylesheet" type="text/css" href="/css/admin/style.css" />
	<link href="/css/admin/jBox.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/js/jquery-1.4.4.js"></script>
	<script type="text/javascript" src="/js/jBox.js"></script>
	<script type="text/javascript" src="/js/admin.js"></script>
	
</head>

<body>
	
		<#include "/admin/nav.ftl">
		
		<div id="wrapper">
			<div id="nav_trail"><a href="#">后台管理</a> 信息推荐</div>
			<div id="content">
			
				<!-- 左边菜单 -->
				<#include "/admin/left_menu.ftl">
				<!-- 左边菜单 -->
				
				
				<script>
		menusel('m_item${item.id}');
	</script>
	
	
				<div class="right_area">
					<div class="cbar">
			            
			              <ul>
			                <li class="cbar-tag-sel"><a href="/admin/info/index?itemID=${item.id}">${item.name?default("")}列表</a></li>
			    			<li><a href="add?itemID=${item.id}">推荐${item.name?default("")}</a></li>
			              </ul>
			         </div><!-- cbar end -->
			         
			      
			         <div class="cbox">
          
            <div class="ydbar">
      			<div class="info-title">${item.name?default("")}列表</div>
    		</div>	
            <table align="center" width="100%" cellspacing="0" cellpadding="0" border="0" class="table_b">
              <tbody><tr class="tab-top">
                <td align="center" width="8%"><strong>ID</strong></td>
                <td align="center" width="42%"><input type="button" value="组合" onclick="combination()" class="fl" /><strong>标题</strong></td>
                <td align="center" width="5%"><strong>站点</strong></td>
                <td align="center" width="10%"><strong>上级ID</strong></td>
                <td align="center" width="10%"><strong>时间</strong></td>
                <td align="center" width="10%">置顶</td>
                <td align="center" width="5%">状态</td>
                <td align="center" width="10%"><strong>操作</strong></td>
              </tr>              
               
              <#if infoList?exists>
				<#list infoList as info>
	              <tr onMouseout="this.className=&quot;table-d-c&quot;" onMouseover="this.className=&quot;td-m&quot;" class="table-d-c">
	              	<input type="hidden" name="infoID" value="${info.id}" />
					<td align="center"><input type="checkBox" name="chose" id="${info.id}" title="${info.title?default("")}" siteName="${info.siteName?default("")}" />${info.id}</td>
	                <td align="left"><a href="${info.url?default("")}" target="_blank">${info.title?default("")}</a></td>
	                <td align="center">${info.siteName?default("")}</td>
	                <td align="center">${info.parentID?default("")}</td>
	                <td align="center">${info.createDate?string("yyyy-MM-dd HH")}</td>
	                <td align="center"><#if info.isTop?exists && info.isTop==1><a href="calcelTop?id=${info.id}&itemID=${info.itemID}"><span class="red">取消置顶<span></a><#elseif info.state==1><a href="top?id=${info.id}&itemID=${info.itemID}">置顶</a></#if></td>
	          		<td><#if info.state==0><span class="red">冻结<span><#elseif info.state==1>正常</#if></td>
	                <td align="center"><a href="edit?id=${info.id}">编辑</a> |
		                <#if info.state==0>
		                		<a href="restore?id=${info.id}">恢复</a>
		                <#elseif info.state==1>
		                	<a href="freeze?id=${info.id}">冻结</a>
		                </#if>
	                 <a onClick="return   confirm( '确定删除? ');" href="delete?id=${info.id}&itemID=${info.itemID}">删除</a>
	                </td>
	              </tr>
			   </#list>
			</#if>
               
			<tr>
                <td colspan="7" align="center"><div class="include_page"><#include "/admin/page.ftl"></div>
            </tr> 
            
             <tr></td></tr>  
            </tbody></table>
            
                 
  	
				
             
          </div><!-- cbox end -->
            
			            
			        </div><!-- right_area end -->
				</div>
				
				<div class="clear"></div>
			</div> <!-- content end-->
			<div id="footer"></div>
   		</div><!-- wrapper end-->
</body>
</html>

